package com.mdd.front.validate.order;

import com.mdd.common.validator.annotation.IDMust;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 租赁交易信息参数
 * @author LikeAdmin
 */
@Data
@ApiModel("租赁交易信息更新参数")
public class DeliveryInfoUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "编码")
    private Long id;

    @NotNull(message = "orderNo参数缺失")
    @ApiModelProperty(value = "订单编号")
    private String orderNo;

    @NotNull(message = "type参数缺失")
    @ApiModelProperty(value = "交车类型;交车类型：1、租车 2、还车")
    private String type;

    @NotNull(message = "videoUrls参数缺失")
    @ApiModelProperty(value = "视频地址;多视频用逗号分隔")
    private String videoUrls;

    @NotNull(message = "imgUrls参数缺失")
    @ApiModelProperty(value = "图片地址")
    private String imgUrls;
}
